const { waitTime } = require('./common');

exports.sleep = function (d) {
    for (let t = Date.now(); Date.now() - t <= d;);
}
exports.login = async function(url, driver, By) {
    await driver.get(url);
    await driver.findElement(By.id('LM_RM_RS_Ct_MCt_tbUserName_I')).sendKeys('FTL');
    await driver.findElement(By.id('LM_RM_RS_Ct_MCt_tbPassword_I')).sendKeys('sav02082019');
    await driver.findElement(By.id('LM_RM_RS_Ct_MCt_btnLogin')).click();
    await waitTime(10000);
}